
using System;
using System.Collections.Generic;
using FairyGUI;
namespace Wwo
{
    public class ResListView : Window
    {
        GList m_List;
        public ResListView()
        {
            UIObjectFactory.SetPackageItemExtension("ui://WaterWorld/ResItem", typeof(ResItem));
        }

        protected override void OnInit()
        {
            this.contentPane = UIPackage.CreateObject("WaterWorld", "ResList").asCom;

            this.SetXY(10, 10);

            m_List = this.contentPane.GetChild("listItems").asList;
            for (int i = 0; i < 2; i++)
            {
                ResItem item = (ResItem)m_List.AddItemFromPool();
                item.setIcon("ui://sw31oo7zd42pc9");
                item.setTitle("1100");
            }
        }

        override protected void OnShown()
        {
        }
    }
}